class ExtendedAIConfig:
    """扩展AI配置管理（包含禅镜和闪剪）"""

    def __init__(self):
        self.configs = {
            # 禅镜模型配置
            "zenmirror": {
                "api_key": os.getenv("ZENMIRROR_API_KEY"),
                "base_url": "https://api.zenmirror.ai/v1",
                "models": {
                    "zenmirror-v1": "基础数字人模型",
                    "zenmirror-pro": "专业数字人模型",
                    "zenmirror-hd": "高清数字人模型"
                },
                "max_duration": 300,  # 最大时长5分钟
                "supported_resolutions": ["720p", "1080p", "2k", "4k"]
            },
            # 闪剪模型配置
            "flashcut": {
                "api_key": os.getenv("FLASHCUT_API_KEY"),
                "base_url": "https://api.flashcut.cn/v1",
                "models": {
                    "flashcut-standard": "标准视频生成",
                    "flashcut-premium": "高级视频生成",
                    "flashcut-express": "快速视频生成"
                },
                "features": [
                    "auto_editing",
                    "smart_subtitles",
                    "background_music",
                    "transition_effects"
                ]
            },
            # 原有配置保持不变
            "openai": {
                "api_key": os.getenv("OPENAI_API_KEY"),
                "base_url": "https://api.openai.com/v1"
            }
        }

        # 禅镜默认参数
        self.zenmirror_defaults = {
            "output_format": "mp4",
            "resolution": "1080p",
            "frame_rate": 25,
            "video_quality": "high",
            "audio_quality": "high",
            "background": "transparent",
            "emotion_intensity": 0.7,
            "head_movement_range": "normal",
            "lip_sync_accuracy": "high"
        }

        # 闪剪默认参数
        self.flashcut_defaults = {
            "output_format": "mp4",
            "aspect_ratio": "16:9",
            "duration": 60,
            "style": "professional",
            "music_intensity": "medium",
            "transition_style": "smooth",
            "subtitle_style": "modern"
        }